package com.qixiucoding.controller;

import com.qixiucoding.annotation.DoneTime;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;


@RestController
public class IndexController {

    @GetMapping("/index/{page}")
    @DoneTime(param = "IndexController")
    public String index(@PathVariable(value = "page") Integer page){
        System.out.println("方法执行");
        return "hello dalaoyang";
    }

    @GetMapping("/index2")
    public String index2(){
        System.out.println("方法2执行");
        return "hello dalaoyang";
    }

    public void print() {
        System.out.println("hahah");
    }
}
